package genedit.model.graph;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.geom.Point2D;
import java.util.ArrayList;

/**
 * Klasa koja reprezentuje grafičke elemente u obliku pravougaonika.
 * 
 * @author Nikola
 * @version 1.0 18/12/13
 */
public class MyRect extends GraphElement {

	private static final long serialVersionUID = 1L;

	public MyRect(GraphDocument parent) {
		super(parent);
		this.color = Color.BLACK;
		this.stroke = new SerializableBasicStroke();
	}

	public MyRect(GraphDocument parent, Point2D position, Dimension size) {
		super(parent);
		this.position = position;
		this.size = size;
		this.color = Color.BLACK;
		this.stroke = new SerializableBasicStroke();
	}

	public MyRect(GraphDocument parent, Point2D position, Dimension size, String name) {
		super(parent, name);
		this.position = position;
		this.size = size;
		this.color = Color.BLACK;
		this.stroke = new SerializableBasicStroke();
	}
}